package com.si.sea_island.utils;

public class PhoneUtils {
    public static String privacyPhone(String phone){
        String newPhone="";
        String[] split = phone.split("");
        if (split.length==11){
            newPhone = split[0]+split[1]+split[2]+"****"+split[7]+split[8]+split[9]+split[10];
            return newPhone;
        }else {
            return "******";
        }
    }
}
